import 'package:flutter/material.dart';
import 'package:hook_up_rent/routes/index.dart';
import 'package:hook_up_rent/widgets/info/info_list.dart';
import 'package:hook_up_rent/widgets/search_bar/search_bar.dart';


class RealTimeInfoPage extends StatelessWidget {
  final String pageName;

  const RealTimeInfoPage(this.pageName, {Key key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar:AppBar(
        title: SearchBar(
          onSearch: (){
            Navigator.of(context).pushNamed(MyRoutes.search);
          },
        ),
        centerTitle: true,
        backgroundColor: Colors.white,
      ),
      body: ListView(
        children: [
          InfoList(),
          InfoList(),
          InfoList(),
        ],
      ),
    );
  }
}